﻿using PumpAlgorithm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Business.CentrifugalPump.Npsh
{
    public class NpshModel
    {
        double expectFlow;
        double actualFlow;
        double innerPress;
        double outPress;
        double power;
        double speed;
        double temperature;



        const double pv = 3160 * CommonParams.pamp; //???
        

        public double ExpectFlow { get => expectFlow; set => expectFlow = value; }
        public double ActualFlow { get => actualFlow; set => actualFlow = value; }
        public double InnerPress { get => innerPress; set => innerPress = value; }
        public double OutPress { get => outPress; set => outPress = value; }
        public double Power { get => power; set => power = value; }
        public double Speed { get => speed; set => speed = value; }
        public double Temperature { get => temperature; set => temperature = value; }

        public double Head
        {
            get => (innerPress - pv) * CommonParams.g * CommonParams.rho;
        }

    }
}
